package com.hog.enums;

/**
 * 与前端接口交互状态
 *
 * @author 糖先森
 * @date 2018年04月03日
 * @since JDK 1.8
 */
public enum StateEnum {
    SUCCESS(0, "操作成功"),
    FAIL(-1, "操作失败,请稍后重试");

    private int code;
    private String msg;

    StateEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}